package com.example.voucher.config.bo;

import java.util.List;

import com.google.common.collect.Lists;

import lombok.Data;

@Data
public class SubjectReducingConfigBO {

    private String subject;
    private String groupingKeyOfAsstItem;
    private String groupingKeyOfEntry;
    private List<FieldReducingConfigBO> fieldReducingList = Lists.newArrayList();

    public SubjectReducingConfigBO() {
        super();
    }

    public SubjectReducingConfigBO(String subject, String groupingKeyOfAsstItem, String groupingKeyOfEntry) {
        super();
        this.subject = subject;
        this.groupingKeyOfAsstItem = groupingKeyOfAsstItem;
        this.groupingKeyOfEntry = groupingKeyOfEntry;
    }

    public SubjectReducingConfigBO(String subject, String groupingKeyOfAsstItem, String groupingKeyOfEntry,
        List<FieldReducingConfigBO> fieldReducingList) {
        super();
        this.subject = subject;
        this.groupingKeyOfAsstItem = groupingKeyOfAsstItem;
        this.groupingKeyOfEntry = groupingKeyOfEntry;
        this.fieldReducingList = fieldReducingList;
    }

}
